package com.mangguo.tingjian.content.service.impl;

import com.mangguo.tingjian.content.dto.SearchWordResult;
import com.mangguo.tingjian.content.entity.DwSearchWord;
import com.mangguo.tingjian.content.mapper.DwSearchWordMapper;
import com.mangguo.tingjian.content.service.IDwSearchWordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 热词搜索表 服务实现类
 * </p>
 *
 * @author auto
 * @since 2019-11-24
 */
@Service
@AllArgsConstructor
public class DwSearchWordServiceImpl extends ServiceImpl<DwSearchWordMapper, DwSearchWord> implements IDwSearchWordService {

    private final DwSearchWordMapper dwSearchWordMapper;

    @Override
    public List<SearchWordResult> countTopSearchWordsBetweenDate(Integer start, Integer end) {
        return dwSearchWordMapper.countTopSearchWordsBetweenDate(start, end);
    }
}
